package tests;

import java.util.ArrayList;
import java.util.Collections;

import engine.Card;
import engine.Deck;
import engine.Hand;

public class simpleTests2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Deck deck = new Deck();
		System.out.println(deck);

		// Collections.sort(deck.getCards());
		// System.out.println(deck);

		ArrayList<Card> cardList = new ArrayList<Card>();

		// /*
		cardList.add(deck.getCards().get(0));
		cardList.add(deck.getCards().get(1));
		cardList.add(deck.getCards().get(2));
		cardList.add(deck.getCards().get(3));
		cardList.add(deck.getCards().get(4));
		cardList.add(deck.getCards().get(5));
		cardList.add(deck.getCards().get(6));
		// */

		/*
		 * cardList.add(new Card(0,14)); cardList.add(new Card(3,4));
		 * cardList.add(new Card(2,4)); cardList.add(new Card(1,14));
		 * cardList.add(new Card(2,7)); cardList.add(new Card(0,6));
		 * cardList.add(new Card(3,5));
		 */

		Hand testHand = new Hand(cardList);

		System.out.println(testHand);

		testHand.evaluateHand();
		System.out.println(testHand.getDescription());

		/*
		 * ArrayList<Card> testHand = new ArrayList<Card>(); testHand.add(new
		 * Card(0,14)); testHand.add(new Card(0,13)); testHand.add(new
		 * Card(0,12)); testHand.add(new Card(0,11)); testHand.add(new
		 * Card(0,10)); testHand.add(new Card(0,8)); testHand.add(new
		 * Card(2,11));
		 * 
		 * 
		 * 
		 * 
		 * Hand hand = new Hand(testHand); Collections.sort(hand.getCards());
		 * 
		 * 
		 * System.out.println(hand);
		 * 
		 * if (hand.hasStraightFlush()) {
		 * System.out.println("hat straight flush"); } else
		 * System.out.println("hat kein straight flush");
		 * 
		 * 
		 * 
		 * 
		 * if (hand.hasFlush()) { System.out.println("hat flush"); } else
		 * System.out.println("hat kein flush");
		 * 
		 * if (hand.hasStraight()) { System.out.println("hat straight"); } else
		 * System.out.println("hat kein straight");
		 * 
		 * if (hand.hasFourOfAKind()) { System.out.println("hat vierling"); }
		 * else System.out.println("hat kein vierling");
		 * 
		 * if (hand.hasFullHouse()) { System.out.println("hat full house"); }
		 * else System.out.println("hat kein full house");
		 * 
		 * if (hand.hasThreeOfAKind()) { System.out.println("hat drilling"); }
		 * else System.out.println("hat kein drilling");
		 * 
		 * if (hand.hasTwoPairs()) { System.out.println("hat 2 paare"); } else
		 * System.out.println("hat keine 2 paare");
		 * 
		 * if (hand.hasOnePair()) { System.out.println("hat paar"); } else
		 * System.out.println("hat kein paar");
		 */

	}

}
